﻿
namespace Edu.Technion.CSE.OpenUnit4.CollectionsLib
{
    /// <summary>
    /// 
    /// </summary>
    interface ITreeNode<T>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        T GetInfo();

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        BinTreeNode<T> GetLeft();

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        BinTreeNode<T> GetRight();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="newInfo"></param>
        void SetInfo(T newInfo);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="newLeft"></param>
        void SetLeft(BinTreeNode<T> newLeft);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="newRight"></param>
        void SetRight(BinTreeNode<T> newRight);

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        string ToString();
    }
}
